package Test0109;

public class EE {
    private String name; // 员工姓名
    private int age; // 员工年龄
    private double salary; // 员工工资

    public EE(String name, int age, double salary) {
        this.name = name;
        this.age = age;
        this.salary = salary;
    }

    public String getName() {
        return name;
    }

    public int getAge() {
        return age;
    }

    public double getSalary() {
        return salary;
    }

    @Override
    public String toString() {
        return "员工姓名: " + name + ", 年龄: " + age + ", 工资: " + salary;
    }
}